#pragma once
#include "link.h"
#include <list>
namespace AI
	{
	using std::list;
	class link;
	class node
		{
		private:
			int value;
		public:
			int h;
			link *p;
			list<link*> child;
			list<link*> parent;
			bool solved;
			node(int v,link *_parent);
			node(const node& other);
			node& operator =(const node& other);
			bool isGoal();
			int getValue();
		};
	}